//
//  BindMobileOperation.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-22.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddBindMobileOperation.h"

@implementation JddBindMobileOperation

@synthesize mobile;
@synthesize verifyCode;

- (void)main{
    JddNetDataCommunication *netDataCommunication = [[JddNetDataCommunication alloc] init];
    NSString *bodyString = [JddParameterBuilder bindMobileParameterWithMobile:self.mobile verifyCode:self.verifyCode];
    NSData *dataMobile = [netDataCommunication requestDataByPostBodyData:[bodyString dataUsingEncoding:NSUTF8StringEncoding]];
    [((NSObject*)self.delegate) performSelectorOnMainThread:@selector(BindMobileOperationResult:) withObject:dataMobile waitUntilDone:NO];            
}

@end
